#ifndef MYOBJECT2_H
#define MYOBJECT2_H

#include <QObject>

#include <QPropertyAnimation>
#include <QPoint>
#include <QPixmap>
class MyObject2 : public QObject
{
    Q_OBJECT
public:
     MyObject2(QPoint startPos,QPoint targetPos,QString fileName);
     void move();
     void draw(QPainter*painter);

private:
     QPoint startPos;
     QPoint currentPos;
     QPoint targetPos;
     QPixmap pixmap;
     qreal speed;

signals:

};

#endif // MYOBJECT2_H
